package com.example.oracle.service.serviceImpl;

import com.example.oracle.mapper.FeedbackMapper;
import com.example.oracle.pojo.Feedback;
import com.example.oracle.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Liu
 */
@Service
public class FeedbackImpl implements FeedbackService {
    @Autowired
    FeedbackMapper feedbackMapper;

    @Override
    public int insertFeedback(Feedback feedback) {
        return feedbackMapper.insertFeedback(feedback);
    }

    @Override
    public List<Feedback> selectFeedback(Feedback feedback) {
        return feedbackMapper.selectFeedback(feedback);
    }
}
